#!/bin/sh -x

cd $builddir
/usr/sfw/bin/wget -q $repbase/$repfiles/$archive
/usr/bin/gunzip -c $archive | /usr/sbin/tar xf -
rm $archive

cd  $builddir/$basedir

./configure --prefix=$installlocation
if [ "$?" != "0" ]; then
	exit 1
fi

make
if [ "$?" != "0" ]; then
	exit 1
fi

make install
if [ "$?" != "0" ]; then
	exit 1
fi
cd ..
rm -r $builddir/$basedir
exit 0
